package com.shiguiwu.springboot3.starter.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @description: 属性
 * @author: stone
 * @date: Created by 2023/7/8 23:07
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springboot3.starter.property
 */
@ConfigurationProperties(prefix = "my")
@Data
public class MyProperties {

    private String name = "";

    private boolean flag = false;

    private boolean enabled = false;

    private List<String> list = List.of("3","7","8");

    private Map<String, Object> map = new HashMap<>();
}
